package pl.mchaniewski.ryneczek.services;

import java.util.List;

import pl.mchaniewski.ryneczek.pojo.User;

public interface UserService {

    public User findById(Integer id);

    public User save(User entity);

    public boolean remove(User entity);

    public List<User> findAll();

    public User findByLogin(String username);

    public User createNewUser(String login, String password);

    public User changePassword(User user, String newPassword);

    public User changeLoginAndPassword(User user, String newLogin,
            String newPassword);

}
